package com.schedule.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.schedule.mapper.PlaceMapper;
import com.schedule.model.Place;

@Repository
public class PlaceDao implements PlaceMapper{
	@Autowired
	PlaceMapper placeMapper;
	public List<Place>findAll(){
		return placeMapper.findAll();
		}
	public void addPlace(Place place) {
		placeMapper.addPlace(place);
	}

	@Override
	public void updatePlace(Place place) {
		placeMapper.updatePlace(place);
	}

	@Override
	public void deletePlace(int placeId) {
		placeMapper.deletePlace(placeId);
	}

	@Override
	public Place findById(int placeId) {
		return placeMapper.findById(placeId);
	}
	

}
